local _G = _G

local UI = {}

--[[
/script LoadAddOn("SecretaryUI") ; SecretaryUI.Test()
/script LoadAddOn("SecretaryUI") ; SecretaryUI.FrameTest()
]]

function UI.Test()
	local data = {
		{ "val11", "val12", "val13" },
		{ "val21", "val22", "val23" },
		{ "val31", "val32", "val33" },
	}
	local desc = {"header1", "header2", "header3"}
	local sv = {
		header_height = 32,
		height = 24,
		width = {},
		default_width = 80,
	}
	local table = UI.MakeTableObject()
	
	table:Initialize(desc, data, sv)
	table:Layout(UIParent)
	table.frame:Show()
end

function UI.FrameTest()
	local object = {
		title = "Test Frame",
		vars = {
			width = 200,
			height = 200,
			left = 100,
			bottom = 100,
		}
	}
	
	local frame = UI.CreateFrame(object)
	frame:Show()
end

_G.SecretaryUI = UI
